import {requestPlanapi,requestDownload} from './common'

export function getMapData(params){
    return requestPlanapi({
        url: "/system/pipe/network/data",
        type: "get",
        params: params
      });
}

//供水量
export function getGSLData(params){
  return requestPlanapi({
      url: "/system/mock/data6",
      type: "get",
      params: params
    });
}

//导出
export function exporYLSJData(params){
  return requestDownload({
    url: "/system/site/pressure/export",
    type: "POST",
    params: params
  });
}
//爆管记录导出
export function exporBGSJData(params){
  return requestDownload({
    url: "/system/pipesquib/record/export",
    type: "POST",
    params: params
  });
}
// 导出余氯数据
export function exportYULVData(params) {
  return requestDownload({
    url: "/system/residual/chlorine/export",
    type: "POST",
    params: params
  })
}

//导出官网GIS中的管网数据
export function exportPipeData(params) {
  return requestDownload({
    url: '/system/pipe/gis/export',
    type: 'POST',
    params: params
  })
}

//24小时出厂压力变化
export function getCcylbh(params){
  return requestPlanapi({
    url: '/jiangan/device/factory/one/day/data',
    type: 'GET',
    params: params
  })
}

